import CostCenterDetailComp from "containers/setting/cost-center/cost-center-detail";
import NewCostCenterComp from "containers/setting/cost-center/new-cost-center";
import CostCenterItemDetailComp from "containers/setting/cost-center/cost-center-item/cost-center-item-detail";
import NewCostCenterItemComp from "containers/setting/cost-center/cost-center-item/new-cost-center-item";
import CostCenterExtendFiledComp from "containers/setting/cost-center/cost-center-extend-filed/cost-center-extend-filed";
import CostCenterComp from "containers/setting/cost-center/cost-center";

// 成本中心
const CostCenterMenu =
  {
    key: 'cost-center',
    url: '/main/setting/cost-center',
    components: CostCenterComp,
    parent: 'setting',
    fpItem: ["settings.costCenter.disabled"],
    fpValue: [[false,undefined]],
    children: {
      // 新增成本中心
      newCostCenter: {
        key: 'new-cost-center',
        url: '/main/setting/cost-center/new-cost-center/:id',
        components: NewCostCenterComp,
        parent: 'cost-center',
      },
      // 成本中心扩展字段
      CostCenterExtendFiled: {
        key: 'cost-center-extend-filed',
        url: '/main/setting/cost-center/cost-center-extend-filed/:costOid/:formOID',
        components: CostCenterExtendFiledComp,
        parent: 'cost-center',
      },
      // 成本中心详情
      costCenterDetail: {
        key: 'cost-center-detail',
        url: '/main/setting/cost-center/cost-center-detail/:id',
        components: CostCenterDetailComp,
        parent: 'cost-center',
      },
      // 成本中心项详情
      costCenterItemDetail: {
        key: 'cost-center-item-detail',
        url: '/main/setting/cost-center/cost-center-detail/:id/cost-center-item/cost-center-item-detail/:itemId',
        components: CostCenterItemDetailComp,
        parent: 'cost-center-detail',
      },
      // 新增成本中心项:编辑成本中心项
      newCostCenterItem: {
        key: 'new-cost-center-item',
        url: '/main/setting/cost-center/cost-center-detail/:id/cost-center-item/new-cost-center-item/:itemId/:costCenterOID',
        components: NewCostCenterItemComp,
        parent: 'cost-center-detail',
      },
    }
  };
export default CostCenterMenu;
